package ls.vuecp.gui.component;

import java.util.Collection;
import java.util.Collections;
import java.util.List;

import tufts.Util;

public class LWMap extends LWContainer
{
	public LWMap()
	{
		
	}
	private final ColorProperty mPresentationColor = new ColorProperty(KEY_PresentationColor, new java.awt.Color(32,32,32));
    
	public static final Key KEY_PresentationColor = new Key(
			"presentation.color", KeyType.STYLE)
	{ 
		final Property getSlot(LWMap c) { 
			return c.mPresentationColor; 
		} 
	};
	
	public LWNode addNode(LWNode c) {
        addChild(c);
        return c;
    }
	@Override
    public void addChildren(Collection<? extends LWComponent> children, Object context) {

//        if (children.size() == 1 && Util.getFirst(children) instanceof LWMap.Layer) 
//        {
//            //isLayered = true;
//            super.addChildren(children, context);
//        } 
//        else if (/*isLayered() &&*/ mActiveLayer != null) {
//            mActiveLayer.addChildren(children, context);
//        } else {
            super.addChildren(children, context);
        }
//    }
}
